<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
	<title>管理中心</title>
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <link href="#(base)/admin/static/css/bootstrap.min.css" rel="stylesheet">
    <link href="#(base)/admin/static/css/font-awesome.min.css" rel="stylesheet">
    <link href="#(base)/admin/static/css/animate.min.css" rel="stylesheet">
    <link href="#(base)/admin/static/css/style.min.css" rel="stylesheet">
</head>

<body class="fixed-sidebar full-height-layout gray-bg">
    <div id="wrapper">
        <!--左侧导航开始-->
        <nav class="navbar-default navbar-static-side" role="navigation">
            <div class="nav-close"><i class="fa fa-times-circle"></i>
            </div>
            <div class="sidebar-collapse">
                <ul class="nav" id="side-menu">
                    <li class="nav-header">
                        <div class="logo-element">CMS</div>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-table"></i>
                            <span class="nav-label">商品管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li><a href="#(base)/admin/product/list" target="iframe">商品管理</a></li>
                        	<li><a href="#(base)/admin/product_category/list" target="iframe">商品分类</a></li>
                        	<li><a href="#(base)/admin/brand/list" target="iframe">品牌管理</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-columns"></i>
                            <span class="nav-label">秒杀管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li><a href="#(base)/admin/seckill/list" target="iframe">秒杀管理</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-columns"></i>
                            <span class="nav-label">拼团管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li><a href="#(base)/admin/group/list" target="iframe">拼团管理</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-columns"></i>
                            <span class="nav-label">优惠券管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li><a href="#(base)/admin/coupon/list" target="iframe">优惠券管理</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-columns"></i>
                            <span class="nav-label">文章管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li><a href="#(base)/admin/article_category/list" target="iframe">文章分类</a></li>
                            <li><a href="#(base)/admin/article/list" target="iframe">文章管理</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-edit"></i>
                            <span class="nav-label">会员管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li><a href="#(base)/admin/member/list" target="iframe">会员管理</a></li>
                            <li><a href="#(base)/admin/member_rank/list" target="iframe">会员等级</a></li>
                            <li><a href="#(base)/admin/complaint/list" target="iframe">投诉建议</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-edit"></i>
                            <span class="nav-label">订单管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li><a href="#(base)/admin/order/list?status=PENDING_SHIPMENT" target="iframe">订单管理</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-bar-chart-o"></i>
                            <span class="nav-label">分销管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li><a href="#(base)/admin/distribute/edit?id=1" target="iframe">分销设置</a></li>
                            <li><a href="#(base)/admin/commission/list" target="iframe">佣金管理</a></li>
                            <li><a href="#(base)/admin/withdraw/list?status=PENDING_CHECK" target="iframe">提现管理</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-bar-chart-o"></i>
                            <span class="nav-label">财务管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li><a href="#(base)/admin/payment/list?type=RECHARGE" target="iframe">财务管理</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-bar-chart-o"></i>
                            <span class="nav-label">广告管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li><a href="#(base)/admin/ad/list" target="iframe">广告</a></li>
                            <li><a href="#(base)/admin/ad_position/list" target="iframe">广告位</a></li>
                            <li><a href="#(base)/admin/friend_link/list" target="iframe">友情链接</a></li>
                        </ul>
                    </li>
                    <li>
                        <a href="#">
                            <i class="fa fa-cog"></i>
                            <span class="nav-label">系统管理</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li><a href="#(base)/admin/role/list" target="iframe">角色</a></li>
                            <li><a href="#(base)/admin/admin/list" target="iframe">管理员</a></li>
                            <li><a href="#(base)/admin/area/list" target="iframe">地区</a></li>
                            <li><a href="#(base)/admin/setup/edit" target="iframe">系统设置</a></li>
                            <li><a href="#(base)/admin/freight/edit?id=1" target="iframe">运费设置</a></li>
                            <li><a href="#(base)/admin/message_config/list" target="iframe">消息配置</a></li>
                            <li><a href="#(base)/admin/template/list" target="iframe">模板</a></li>
                            <li><a href="#(base)/admin/database/list" target="iframe">数据库</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </nav>
        <!--左侧导航结束-->
        <!--右侧部分开始-->
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
                    <div class="navbar-header"><a class="navbar-minimalize minimalize-styl-2 btn btn-primary " href="#"><i class="fa fa-bars"></i></a></div>
                    <ul class="nav navbar-top-links navbar-right">
                    	<li class="dropdown">
                    		<a class="dropdown-toggle count-info" href="#(base)/" target="_blank">
                    			前台首页
                            </a>
                        </li>
                        <li class="dropdown">
                    		<a class="dropdown-toggle count-info" href="javascript:;" onclick="clearCache()">
                    			清理缓存
                            </a>
                        </li>
                    	<li class="dropdown">
                    		<a class="dropdown-toggle count-info" href="javascript:;">
                    			#(session.session_admin.username)
                            </a>
                        </li>
                        <li class="dropdown">
                            <a class="dropdown-toggle count-info" href="#(base)/admin/profile/edit" target="iframe">
                    			[账号设置]
                            </a>
                        </li>
                        <li class="dropdown">
                            <a class="dropdown-toggle count-info" href="#(base)/admin/logout">
                    			[注销]
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
            <div class="row J_mainContent" id="content-main">
                <iframe id="iframe" name="iframe" src="index" width="100%" height="100%" src="index" frameborder="0"></iframe>
            </div>
            <div class="footer">
                <div class="pull-right">© 2012-<script>document.write( new Date().getFullYear() );</script><a href="http://www.jrecms.com" target="_blank">JreCms</a>
                </div>
            </div>
        </div>
        <!--右侧部分结束-->
    </div>
</body>
</html>
<script type="text/javascript" src="#(base)/admin/static/js/jquery.js"></script>
<script type="text/javascript" src="#(base)/admin/static/js/bootstrap.min.js"></script>
<script type="text/javascript" src="#(base)/admin/static/plugins/metisMenu/jquery.metisMenu.js"></script>
<script type="text/javascript" src="#(base)/admin/static/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script type="text/javascript" src="#(base)/admin/static/js/base.js"></script>
<script type="text/javascript" src="#(base)/admin/static/js/contabs.min.js"></script>
<script type="text/javascript" src="#(base)/admin/static/plugins/pace/pace.min.js"></script>
<script type="text/javascript" src="#(base)/admin/static/plugins/sweetalert/sweetalert.min.js"></script>
<script type="text/javascript">
//清理缓存
function clearCache(){
	$.ajax({
		url: "#(base)/admin/cache/delete",
		type: "POST",
		data: {},
		dataType: "json",
		cache: false,
		success: function(response) {
			if (response.type == "success") {
				swal({title:'', text:'操作成功',icon: 'success',button:false,timer: 2000});
			}else{
				swal({title:'', text:response.msg,icon: 'error'});
			}
		}
	});
}
</script>